package com.baizhi.app.controller;


import com.baizhi.app.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@Controller

public class BannerController {
    @Autowired
    private BannerService bannerService;
    @RequestMapping("/showAllBanner/{bannerNumber}")
    @ResponseBody

    public List<Map> showAllBanner(@PathVariable("bannerNumber") int bannerNumber){
        return  bannerService.showAllBanner(bannerNumber);
    }
}
